//
//  FindCollectionViewCell.m
//  kr_36
//
//  Created by lmt on 16/1/22.
//  Copyright © 2016年 www.lanou3g.com 蓝鸥科技. All rights reserved.
//

#import "FindCollectionViewCell.h"

@implementation FindCollectionViewCell

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        self.title = [[UILabel alloc] init];
       // _title.backgroundColor = [UIColor redColor];
        [self.contentView addSubview:_title];
        _title.font = [UIFont systemFontOfSize:18];
        
        self.img = [[UIImageView alloc] init];
        //_img.backgroundColor = [UIColor yellowColor];
        [self.contentView addSubview:_img];
    }
    return self;
}

- (void)applyLayoutAttributes:(UICollectionViewLayoutAttributes *)layoutAttributes
{
    [super applyLayoutAttributes:layoutAttributes];
    
    _img.frame = CGRectMake(20, 20, 30, 30);
    
    _title.frame = CGRectMake(70, 5, layoutAttributes.size.width - 15 - 60, 60);
    
}

@end
